package com.lovo.invoicing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.invoicing.bean.UserBean;
import com.lovo.invoicing.bean.UserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

@Mapper
public interface UserMapper extends BaseMapper<UserBean> {

     //插入关联表
     void insertUserRole(List<UserRole> list);
     //删除关联表
     void deleteUserRole(int userId);

     List<Integer> selectRoleIdsByUserId(int userId);

     List<Integer> selectLimitByRoleIds(List<Integer> roleIds);
}
